package com.lzs.bootsafety.business.sys.mapper;

import com.github.pagehelper.Page;
import com.lzs.bootsafety.business.sys.entity.SysDict;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysDictMapper {
    /**
     * 查询所有字典
     * @return
     */
    List<SysDict> selectSysDict(@Param("dictType") String dictType);

    /**
     * 分页查询
     * @param sysDict
     * @return
     */
    Page<SysDict> selectDictList(SysDict sysDict);

    /**
     *批量删除
     * @param dictIds
     * @return
     */
    int deleteByPrimaryKey(Long[] dictIds);

    int insert(SysDict record);

    /**
     * 添加字典
     * @param record
     * @return
     */
    int insertSelective(SysDict record);

    /**
     * 根据dictId查询字典
     * @param dictId
     * @return
     */
    SysDict selectByPrimaryKey(Long dictId);

    /**
     * 更新字典
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(SysDict record);

    int updateByPrimaryKey(SysDict record);
}